package com.ning.ems.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Basic information of the package.
 *
 * @author Ning 242741154@qq.com
 * @date 2020/3/3 9:51
 */
@Data
@Repository
@ApiModel("Entity-Package")
public class Package implements Serializable {
    @ApiModelProperty("Primary key")
    private Integer id;

    @ApiModelProperty("describe")
    private String desc;
    @ApiModelProperty("weight")
    private Double weight;

    @ApiModelProperty("sender id")
    private Integer sender;
    @ApiModelProperty("sender address id")
    private Integer senderAddr;

    @ApiModelProperty("receiver id")
    private Integer receiver;
    @ApiModelProperty("receiver address id")
    private Integer receiverAddr;

    @ApiModelProperty("order time")
    private LocalDateTime time;
    @ApiModelProperty("current status")
    private Integer currState = 0;

//    /**
//     * state information list
//     */
//    private transient List<PackageStateInfo> stateInfos;

}
